package org.example.demo3.demos.web.vmsEnterpriseInfo.Impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.example.demo3.demos.web.entity.VmsEnterpriseInfo;
import org.example.demo3.demos.web.entity.VmsEpsInformation;
import org.example.demo3.demos.web.mapper.VmsEnterpriseInfoMapper;
import org.example.demo3.demos.web.vmsEnterpriseInfo.VmsEnterpriseInfoService;
import org.springframework.stereotype.Service;

@Service
public class VmsEnterpriseInfoServiceImpl extends ServiceImpl <VmsEnterpriseInfoMapper, VmsEnterpriseInfo> implements VmsEnterpriseInfoService {

    @Override
    public VmsEnterpriseInfo getInfoByRedis(String deptCode) {
        VmsEnterpriseInfo one = this.getOne(
                new LambdaQueryWrapper<VmsEnterpriseInfo>()
                        .eq(VmsEnterpriseInfo::getDeptCode, deptCode)
        );
        System.out.println(one);
        return one;
    }

}
